<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of menuclass
 *
 * @author Administrator
 */
class menu {

    function menulist($menus) {

        foreach ($menus as $v) {
            
            $v['b']=0;

            if(substr_count($v['path'],',')>2) {
                $v['b']=substr_count($v['path'],',')-2;
            }

            $result[]=$v;

        }

        return $result;
    }

    function getson($menus,$id){





    }


}
?>